package biz.datalk.industrialland.admin.interceptor;

import biz.datalk.industrialland.common.advice.CheckSignatureInterceptor;
import biz.datalk.industrialland.common.advice.cfg.DatalkCryptoCfgs;
import biz.datalk.industrialland.common.util.RedisUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 校核签名的拦截器
 * @author tarofang@163.com
 * @date 2019-11-10
 */
@Slf4j
public class CustomCheckSignatureInterceptor extends CheckSignatureInterceptor {

    private final RedisUtil redisUtil;
    private final DatalkCryptoCfgs datalkCryptoCfgs;

    @Autowired
    public CustomCheckSignatureInterceptor(RedisUtil redisUtil, DatalkCryptoCfgs datalkCryptoCfgs) {
        super(redisUtil, datalkCryptoCfgs);
        this.redisUtil = redisUtil;
        this.datalkCryptoCfgs = datalkCryptoCfgs;
    }

}
